//
//  BSMeCollectionViewCell.m
//  baisibudejie
//
//  Created by 陈博文 on 15/12/21.
//  Copyright © 2015年 陈博文. All rights reserved.
//

#import "BSMeCollectionViewCell.h"
#import "BSMeCollectionCellItem.h"
#import <UIImageView+WebCache.h>
@interface BSMeCollectionViewCell ()
@property (weak, nonatomic) IBOutlet UIImageView *icon;
@property (weak, nonatomic) IBOutlet UILabel *name;

@end

@implementation BSMeCollectionViewCell


- (void)awakeFromNib {
    // Initialization code
}


-(void)setItem:(BSMeCollectionCellItem *)item{
    _item = item;
    
    self.name.text = item.name;
//    NSLog(@"%@",item.icon);
    [self.icon sd_setImageWithURL:[NSURL URLWithString:item.icon]];
}

@end
